
<template>
  <user-info />
</template>
import UserInfo from 'UserInfo'
<script>
import UserInfo from 'userinfo-list.vue'
import { fetchList } from '@/api/article'

export default {
  name: 'UserIndex',
  components: { UserInfo },
  data() {
    return {
      list1: [],
      list2: []
    }
  },
  created() {
    this.getData()
  },
  methods: {
    getData() {
      this.listLoading = true
      fetchList().then(response => {
        this.list1 = response.data.items.splice(0, 5)
        this.list2 = response.data.items
      })
    }
  }
}
</script>
